# $Id: PKGBUILD 83142 2013-01-27 16:14:44Z pierre $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=gimp-dbp
pkgver=1.1.9
pkgrel=3
pkgdesc="David's batch processor for the GIMP"
arch=('i686' 'x86_64')
url="http://members.ozemail.com.au/~hodsond/dbp.html"
license=('GPL')
depends=('gimp')
source=(http://www.ozemail.com.au/~hodsond/dbpSrc-${pkgver//./-}.tgz)
md5sums=('1106625707798ab8ea1317ac6bece1c5')

build() {
  cd "${srcdir}/dbp-${pkgver}"
  sed -i "s|<string>|<cstring>|" op.h
  make
}

package() {
  cd "${srcdir}/dbp-${pkgver}"
  install -D -m755 dbp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/dbp"
}
